<%@ include file="/common/taglibs.jsp"%>

<div style="padding:5px;" align="center">
	<!-- <span class="head-dec">Import File</span> --><br/><br/>
	<s:form name="importFile" action="/importFile" method="POST" enctype="multipart/form-data" >
		<table border="0">
		 	<tr>
		 		<td class="inputField" nowrap="nowrap">Screen Name</td>
				<td class="inputTextBox">
					<div style="float:left;">
						<s:select headerKey="-1" headerValue="Select Screen" list="#{'Result':'Result', 'Class':'Class', 'Section':'Section', 'Staff':'Staff', 'Subject':'Subject', 'Examination':'Examination', 'Student':'Student'}" name="screenName" onchange="javascript:showRespectiveDivs(this.value);" />						
					</div>
					<div align="middle">
						<a href="#" onclick="javascript:getScreenValue();"/>Download Template</a>
					</div>
				</td>
			</tr>
			<tr><td>&nbsp;</td></tr>
			<div id="academic" style="display:none;">
				<tr>
			 		<td class="inputField" nowrap="nowrap">
		     			Academic Year
		     		</td>
					<td>
						<s:select  name="academicYear" id="import_academic_year" emptyOption="true" list="academicList" listKey="id" displayName="Class" listValue="academicYear" cssStyle="width:200px" />
					</td>
				</tr>
			</div>
				<tr><td>&nbsp;</td></tr>
			<span id="classYear">
			 	<tr>
			 		<td class="inputField" nowrap="nowrap">
		     			Class Name
		     		</td>
					<td>
						<s:select  name="classYear" id="import_class_name" emptyOption="true" list="classYears" listKey="id" displayName="Class" listValue="name" cssStyle="width:200px" />
					</td>
				</tr>
			</span>
				<tr><td>&nbsp;</td></tr>
			<span id="section">
				<tr>
			 		<td class="inputField" nowrap="nowrap">
		     			Section Name
		     		</td>
					<td>
						<s:select  name="sectionName" id="import_section_name" emptyOption="true" list="sectionList" listKey="id" listValue="sectionName" cssStyle="width:200px" />
					</td>
				</tr>
			</span>
				<tr><td>&nbsp;</td></tr>
			<span id="exam">
		     	<tr>
			 		<td class="inputField" nowrap="nowrap">
		     			Exam Name
		     		</td>
					<td>
						<s:select  name="examName" id="import_exam_name" emptyOption="true" list="examList" listKey="id" listValue="examName" cssStyle="width:200px" />
					</td>
				</tr>
			</span>
				<tr><td>&nbsp;</td></tr>
			<span id="subject">
		     	<tr>
			 		<td class="inputField" nowrap="nowrap">
		     			Subject Name
		     		</td>
					<td>
						<s:select  name="subjectName" id="import_subject_name" emptyOption="true" list="subjectList" listKey="id" listValue="subjectName" cssStyle="width:200px" />
					</td>
				</tr>
			</span>
			<tr><td>&nbsp;</td></tr>
			<tr>
		 		<td class="inputField" nowrap="nowrap">
	     			File
	     		</td>
				<td>
					<s:file name="fileUpload" size="20" />
				</td>
			</tr>
			<tr>
				<td colspan="2" align="right">
					<input type="submit" value="Upload" id="file_0" class="button-green">
				</td>
			</tr>
		</table>
	</s:form>
</div>
